#
# This script restores rarc database.
#

#!/bin/sh

# NOTE! SET THIS VARIABLE
DATABASE_NAME=""         

if [ $# -ne 3 ]
then
 echo "usage: ./setup_rarc_database <username database> <password database> <filename backup>"
 exit 1
fi

USERNAME_DATABASE=$1
PASSWORD_DATABASE=$2
FILENAME_RARC_DATABASE_BACKUP=$3

echo "Restore rarc database"
mysql -u$USERNAME_DATABASE -p$PASSWORD_DATABASE -D $DATABASE_NAME < $FILENAME_RARC_DATABASE_BACKUP

